package org.turl.wrappers;

import org.turl.objects.PolarComplexNumber;

/**
 * Created by tonyx
 * Date: Dec 30, 2007
 * Time: 9:52:34 AM
 */
public class RectangularToPolarMapper implements  WrapperToObject {
     public Wrapper getWrapperForClassConstructorWithParameters(Class targetClass,Class targetParamsTypes[],Class[] originParamsTypes) {
        // I don't care about targetParType and originParamTypes because there is just one constructor for each representation
        if (targetClass.equals(PolarComplexNumber.class)) {
            return new RectangularToPolar();
        }
        throw new RuntimeException("wrapper not defined for the target class");
    }
}
